package com.imooc;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

@SpringBootApplication
@ServletComponentScan
public class VideoApplication extends SpringBootServletInitializer {
	
	public static void main(String[] args) {
		SpringApplication.run(VideoApplication.class, args);
	}

	@Override
	protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
		//使用web.xml与运行应用程序，指向Aplciation，最后启动springboot
		return builder.sources(VideoApplication.class);
	}
}
